package com.gtenacg.cartoonservice.mapper;

import com.gtenacg.cartoonservice.pojo.model.Cartoon;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DuplicateKeyException;

import java.util.List;

/**
* @author 86198
* @description 针对表【cartoon(漫画)】的数据库操作Mapper
* @createDate 2024-05-06 16:50:49
* @Entity generator.pojo.Cartoon
*/
@Mapper
//@CacheNamespace
public interface CartoonMapper {

    List<Cartoon> list();

    List<Cartoon> getByCids(List<Integer> cids);

    void insert(Cartoon cartoon) throws DuplicateKeyException;

    void update(Cartoon cartoon);

    void delete(List<Integer> cids);

    List<Cartoon> search(String name);

    List<Cartoon> random(Integer num);
}




